const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  publicPath: './', // 设置当前目录
  lintOnSave: false,
  outputDir: "../../../sanyuan/sanyuanWebgl/public/static/cabinet",
  devServer: {
    proxy: {
      '/api': {
        target: 'http://xrdc.3ddcim.com/v1', // 目标接口的域名
        changeOrigin: true, // 是否改变源地址
        pathRewrite: {
          '^/api': '' // 将请求地址前缀 '/api' 替换为 ''
        }
      }
    }
  }
})
